<?php
/**
 * Base_App
 *
 * LICENSE
 *
 * This source file is subject to the new CC-GNU LGPL
 * It is available through the world-wide-web at this URL:
 * http://creativecommons.org/licenses/LGPL/2.1/
 *
 * @category   Base_App
 * @copyright  Copyright (c) 2009 Alexander fanatique* Thomas (me@alexander-thomas.net)
 * @license    http://creativecommons.org/licenses/LGPL/2.1/
 */
class IndexController extends Base_App_Controller_Action {
	/**
	 * The index method. Nothing special here.
	 */
	public function indexAction() {

	}
	/**
	 * If you're not logged in, you should not be allowed to call this method
	 */
	public function secretAction(){
		
	}
	
	/**
	 * This method shows the routes which are defined in [APP_PATH]/Config/routes.xml and the fact that 
	 * methods which are derived from Base_App_Controller_Action react dynamically on Ajax calls.
	 */
	public function loadAction(){
		$this->view->id = (int) $this->_getParam('id');
		$this->view->user = Service_Tables::getInstance()->user->find($this->view->id)->current();
	}
}
?>
